package com.JackTang.filters;


import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @author Jack Tang
 * @description
 * @create 2023-05-15 20:49
 */
//@WebFilter("/demo01.do")
@WebFilter("*.do")
public class Filter03 implements Filter {
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("C");
        // 放行
        filterChain.doFilter(servletRequest,servletResponse);
        System.out.println("C2");
    }

    public void destroy() {

    }
}